﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Ogdi.Data.DataLoader
{
    [Serializable]
    public class MetadataNotFoundException : Exception
    {
        public MetadataNotFoundException(String entitySetName, MetadataKind metadataKind)
            : base(constructMessage(entitySetName, metadataKind))
        {
        }

        private static string constructMessage(String entitySetName, MetadataKind metadataKind)
        {
            string mess = metadataKind.ToString() + " metadata for " + entitySetName + " was not found in the storage.";
            return mess;
        }
    }

    public enum MetadataKind
    {
        Table,
        Entity,
        ProcessorParams
    }
}
